﻿/*
 * XCoder v3.4.2011.0316
 * 作者：nnhy/X
 * 时间：2011-04-04 11:54:06
 * 版权：版权所有 (C) 新生命开发团队 2010
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using XCode;
using XCode.DataAccessLayer;

namespace NXCMS.CMS
{
	/// <summary>
	/// 管理员组
	/// </summary>
	[Serializable]
	[DataObject]
	[Description("管理员组")]
	[BindTable("AdminGroup", Description = "管理员组", ConnName = "CMS", DbType = DatabaseType.SqlServer)]
	public partial class AdminGroup
	{
		#region 属性
		private Int32 _ID;
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "编号", "", "int", 10, 0, false)]
		public Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChange("ID", value)) _ID = value; }
		}

		private Int32 _GroupID;
		/// <summary>
		/// 组编号
		/// </summary>
		[Description("组编号")]
		[DataObjectField(false, false, false, 10)]
		[BindColumn(2, "GroupID", "组编号", "", "int", 10, 0, false)]
		public Int32 GroupID
		{
			get { return _GroupID; }
			set { if (OnPropertyChange("GroupID", value)) _GroupID = value; }
		}

		private Int32 _SiteID;
		/// <summary>
		/// 站点编号
		/// </summary>
		[Description("站点编号")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(3, "SiteID", "站点编号", "", "int", 10, 0, false)]
		public Int32 SiteID
		{
			get { return _SiteID; }
			set { if (OnPropertyChange("SiteID", value)) _SiteID = value; }
		}

		private Boolean _AllowEditUser;
		/// <summary>
		/// 允许编辑用户
		/// </summary>
		[Description("允许编辑用户")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(4, "AllowEditUser", "允许编辑用户", "", "bit", 0, 0, false)]
		public Boolean AllowEditUser
		{
			get { return _AllowEditUser; }
			set { if (OnPropertyChange("AllowEditUser", value)) _AllowEditUser = value; }
		}

		private Boolean _AllowForbidUser;
		/// <summary>
		/// 允许禁止用户
		/// </summary>
		[Description("允许禁止用户")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(5, "AllowForbidUser", "允许禁止用户", "", "bit", 0, 0, false)]
		public Boolean AllowForbidUser
		{
			get { return _AllowForbidUser; }
			set { if (OnPropertyChange("AllowForbidUser", value)) _AllowForbidUser = value; }
		}

		private Boolean _AllowEditForum;
		/// <summary>
		/// 允许编辑论坛
		/// </summary>
		[Description("允许编辑论坛")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(6, "AllowEditForum", "允许编辑论坛", "", "bit", 0, 0, false)]
		public Boolean AllowEditForum
		{
			get { return _AllowEditForum; }
			set { if (OnPropertyChange("AllowEditForum", value)) _AllowEditForum = value; }
		}

		private Boolean _AllowVerfyPost;
		/// <summary>
		/// 允许审核发布
		/// </summary>
		[Description("允许审核发布")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(7, "AllowVerfyPost", "允许审核发布", "", "bit", 0, 0, false)]
		public Boolean AllowVerfyPost
		{
			get { return _AllowVerfyPost; }
			set { if (OnPropertyChange("AllowVerfyPost", value)) _AllowVerfyPost = value; }
		}

		private Boolean _AllowDel;
		/// <summary>
		/// 允许删除
		/// </summary>
		[Description("允许删除")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(8, "AllowDel", "允许删除", "", "bit", 0, 0, false)]
		public Boolean AllowDel
		{
			get { return _AllowDel; }
			set { if (OnPropertyChange("AllowDel", value)) _AllowDel = value; }
		}

		private Boolean _AllowEdit;
		/// <summary>
		/// 允许编辑
		/// </summary>
		[Description("允许编辑")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(9, "AllowEdit", "允许编辑", "", "bit", 0, 0, false)]
		public Boolean AllowEdit
		{
			get { return _AllowEdit; }
			set { if (OnPropertyChange("AllowEdit", value)) _AllowEdit = value; }
		}

		private Boolean _Hide;
		/// <summary>
		/// 隐藏
		/// </summary>
		[Description("隐藏")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(10, "Hide", "隐藏", "", "bit", 0, 0, false)]
		public Boolean Hide
		{
			get { return _Hide; }
			set { if (OnPropertyChange("Hide", value)) _Hide = value; }
		}

		private Boolean _RemoveTheme;
		/// <summary>
		/// 移除主题
		/// </summary>
		[Description("移除主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(11, "RemoveTheme", "移除主题", "", "bit", 0, 0, false)]
		public Boolean RemoveTheme
		{
			get { return _RemoveTheme; }
			set { if (OnPropertyChange("RemoveTheme", value)) _RemoveTheme = value; }
		}

		private Boolean _MoveTheme;
		/// <summary>
		/// 移动主题
		/// </summary>
		[Description("移动主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(12, "MoveTheme", "移动主题", "", "bit", 0, 0, false)]
		public Boolean MoveTheme
		{
			get { return _MoveTheme; }
			set { if (OnPropertyChange("MoveTheme", value)) _MoveTheme = value; }
		}

		private Boolean _TopTheme;
		/// <summary>
		/// 顶部主题
		/// </summary>
		[Description("顶部主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(13, "TopTheme", "顶部主题", "", "bit", 0, 0, false)]
		public Boolean TopTheme
		{
			get { return _TopTheme; }
			set { if (OnPropertyChange("TopTheme", value)) _TopTheme = value; }
		}

		private Boolean _BrightTheme;
		/// <summary>
		/// 明亮主题
		/// </summary>
		[Description("明亮主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(14, "BrightTheme", "明亮主题", "", "bit", 0, 0, false)]
		public Boolean BrightTheme
		{
			get { return _BrightTheme; }
			set { if (OnPropertyChange("BrightTheme", value)) _BrightTheme = value; }
		}

		private Boolean _UpOrDownTheme;
		/// <summary>
		/// 上或下主题
		/// </summary>
		[Description("上或下主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(15, "UpOrDownTheme", "上或下主题", "", "bit", 0, 0, false)]
		public Boolean UpOrDownTheme
		{
			get { return _UpOrDownTheme; }
			set { if (OnPropertyChange("UpOrDownTheme", value)) _UpOrDownTheme = value; }
		}

		private Boolean _BestTheme;
		/// <summary>
		/// 最好主题
		/// </summary>
		[Description("最好主题")]
		[DataObjectField(false, false, true, 1)]
		[BindColumn(16, "BestTheme", "最好主题", "", "bit", 0, 0, false)]
		public Boolean BestTheme
		{
			get { return _BestTheme; }
			set { if (OnPropertyChange("BestTheme", value)) _BestTheme = value; }
		}

		private String _prop1;
		/// <summary>
		/// 属性1
		/// </summary>
		[Description("属性1")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(17, "prop1", "属性1", "", "nvarchar(50)", 0, 0, true)]
		public String prop1
		{
			get { return _prop1; }
			set { if (OnPropertyChange("prop1", value)) _prop1 = value; }
		}

		private String _prop2;
		/// <summary>
		/// 属性2
		/// </summary>
		[Description("属性2")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(18, "prop2", "属性2", "", "nvarchar(50)", 0, 0, true)]
		public String prop2
		{
			get { return _prop2; }
			set { if (OnPropertyChange("prop2", value)) _prop2 = value; }
		}

		private String _prop3;
		/// <summary>
		/// 属性3
		/// </summary>
		[Description("属性3")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(19, "prop3", "属性3", "", "nvarchar(50)", 0, 0, true)]
		public String prop3
		{
			get { return _prop3; }
			set { if (OnPropertyChange("prop3", value)) _prop3 = value; }
		}

		private String _prop4;
		/// <summary>
		/// 属性4
		/// </summary>
		[Description("属性4")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(20, "prop4", "属性4", "", "nvarchar(50)", 0, 0, true)]
		public String prop4
		{
			get { return _prop4; }
			set { if (OnPropertyChange("prop4", value)) _prop4 = value; }
		}

		private String _AddUser;
		/// <summary>
		/// 添加用户
		/// </summary>
		[Description("添加用户")]
		[DataObjectField(false, false, false, 100)]
		[BindColumn(21, "AddUser", "添加用户", "", "nvarchar(100)", 0, 0, true)]
		public String AddUser
		{
			get { return _AddUser; }
			set { if (OnPropertyChange("AddUser", value)) _AddUser = value; }
		}

		private DateTime _AddTime;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Description("添加时间")]
		[DataObjectField(false, false, false, 7)]
		[BindColumn(22, "AddTime", "添加时间", "", "datetime2", 7, 0, false)]
		public DateTime AddTime
		{
			get { return _AddTime; }
			set { if (OnPropertyChange("AddTime", value)) _AddTime = value; }
		}

		private String _ModifyUser;
		/// <summary>
		/// 修改用户
		/// </summary>
		[Description("修改用户")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(23, "ModifyUser", "修改用户", "", "nvarchar(100)", 0, 0, true)]
		public String ModifyUser
		{
			get { return _ModifyUser; }
			set { if (OnPropertyChange("ModifyUser", value)) _ModifyUser = value; }
		}

		private DateTime _ModifyTime;
		/// <summary>
		/// 修改时间
		/// </summary>
		[Description("修改时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(24, "ModifyTime", "修改时间", "", "datetime2", 7, 0, false)]
		public DateTime ModifyTime
		{
			get { return _ModifyTime; }
			set { if (OnPropertyChange("ModifyTime", value)) _ModifyTime = value; }
		}

		private String _BackupNo;
		/// <summary>
		/// 备份编号
		/// </summary>
		[Description("备份编号")]
		[DataObjectField(false, false, true, 15)]
		[BindColumn(25, "BackupNo", "备份编号", "", "nvarchar(15)", 0, 0, true)]
		public String BackupNo
		{
			get { return _BackupNo; }
			set { if (OnPropertyChange("BackupNo", value)) _BackupNo = value; }
		}

		private String _BackupOperator;
		/// <summary>
		/// 备份操作者
		/// </summary>
		[Description("备份操作者")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(26, "BackupOperator", "备份操作者", "", "nvarchar(200)", 0, 0, true)]
		public String BackupOperator
		{
			get { return _BackupOperator; }
			set { if (OnPropertyChange("BackupOperator", value)) _BackupOperator = value; }
		}

		private DateTime _BackupTime;
		/// <summary>
		/// 备份时间
		/// </summary>
		[Description("备份时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(27, "BackupTime", "备份时间", "", "datetime2", 7, 0, false)]
		public DateTime BackupTime
		{
			get { return _BackupTime; }
			set { if (OnPropertyChange("BackupTime", value)) _BackupTime = value; }
		}

		private String _BackupMemo;
		/// <summary>
		/// 备份注释
		/// </summary>
		[Description("备份注释")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(28, "BackupMemo", "备份注释", "", "nvarchar(50)", 0, 0, true)]
		public String BackupMemo
		{
			get { return _BackupMemo; }
			set { if (OnPropertyChange("BackupMemo", value)) _BackupMemo = value; }
		}
		#endregion

		#region 获取/设置 字段值
		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case "ID" : return _ID;
					case "GroupID" : return _GroupID;
					case "SiteID" : return _SiteID;
					case "AllowEditUser" : return _AllowEditUser;
					case "AllowForbidUser" : return _AllowForbidUser;
					case "AllowEditForum" : return _AllowEditForum;
					case "AllowVerfyPost" : return _AllowVerfyPost;
					case "AllowDel" : return _AllowDel;
					case "AllowEdit" : return _AllowEdit;
					case "Hide" : return _Hide;
					case "RemoveTheme" : return _RemoveTheme;
					case "MoveTheme" : return _MoveTheme;
					case "TopTheme" : return _TopTheme;
					case "BrightTheme" : return _BrightTheme;
					case "UpOrDownTheme" : return _UpOrDownTheme;
					case "BestTheme" : return _BestTheme;
					case "prop1" : return _prop1;
					case "prop2" : return _prop2;
					case "prop3" : return _prop3;
					case "prop4" : return _prop4;
					case "AddUser" : return _AddUser;
					case "AddTime" : return _AddTime;
					case "ModifyUser" : return _ModifyUser;
					case "ModifyTime" : return _ModifyTime;
					case "BackupNo" : return _BackupNo;
					case "BackupOperator" : return _BackupOperator;
					case "BackupTime" : return _BackupTime;
					case "BackupMemo" : return _BackupMemo;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case "ID" : _ID = Convert.ToInt32(value); break;
					case "GroupID" : _GroupID = Convert.ToInt32(value); break;
					case "SiteID" : _SiteID = Convert.ToInt32(value); break;
					case "AllowEditUser" : _AllowEditUser = Convert.ToBoolean(value); break;
					case "AllowForbidUser" : _AllowForbidUser = Convert.ToBoolean(value); break;
					case "AllowEditForum" : _AllowEditForum = Convert.ToBoolean(value); break;
					case "AllowVerfyPost" : _AllowVerfyPost = Convert.ToBoolean(value); break;
					case "AllowDel" : _AllowDel = Convert.ToBoolean(value); break;
					case "AllowEdit" : _AllowEdit = Convert.ToBoolean(value); break;
					case "Hide" : _Hide = Convert.ToBoolean(value); break;
					case "RemoveTheme" : _RemoveTheme = Convert.ToBoolean(value); break;
					case "MoveTheme" : _MoveTheme = Convert.ToBoolean(value); break;
					case "TopTheme" : _TopTheme = Convert.ToBoolean(value); break;
					case "BrightTheme" : _BrightTheme = Convert.ToBoolean(value); break;
					case "UpOrDownTheme" : _UpOrDownTheme = Convert.ToBoolean(value); break;
					case "BestTheme" : _BestTheme = Convert.ToBoolean(value); break;
					case "prop1" : _prop1 = Convert.ToString(value); break;
					case "prop2" : _prop2 = Convert.ToString(value); break;
					case "prop3" : _prop3 = Convert.ToString(value); break;
					case "prop4" : _prop4 = Convert.ToString(value); break;
					case "AddUser" : _AddUser = Convert.ToString(value); break;
					case "AddTime" : _AddTime = Convert.ToDateTime(value); break;
					case "ModifyUser" : _ModifyUser = Convert.ToString(value); break;
					case "ModifyTime" : _ModifyTime = Convert.ToDateTime(value); break;
					case "BackupNo" : _BackupNo = Convert.ToString(value); break;
					case "BackupOperator" : _BackupOperator = Convert.ToString(value); break;
					case "BackupTime" : _BackupTime = Convert.ToDateTime(value); break;
					case "BackupMemo" : _BackupMemo = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}
		#endregion

		#region 字段名
		/// <summary>
		/// 取得管理员组字段名的快捷方式
		/// </summary>
		public class _
		{
			///<summary>
			/// 编号
			///</summary>
			public const String ID = "ID";

			///<summary>
			/// 组编号
			///</summary>
			public const String GroupID = "GroupID";

			///<summary>
			/// 站点编号
			///</summary>
			public const String SiteID = "SiteID";

			///<summary>
			/// 允许编辑用户
			///</summary>
			public const String AllowEditUser = "AllowEditUser";

			///<summary>
			/// 允许禁止用户
			///</summary>
			public const String AllowForbidUser = "AllowForbidUser";

			///<summary>
			/// 允许编辑论坛
			///</summary>
			public const String AllowEditForum = "AllowEditForum";

			///<summary>
			/// 允许审核发布
			///</summary>
			public const String AllowVerfyPost = "AllowVerfyPost";

			///<summary>
			/// 允许删除
			///</summary>
			public const String AllowDel = "AllowDel";

			///<summary>
			/// 允许编辑
			///</summary>
			public const String AllowEdit = "AllowEdit";

			///<summary>
			/// 隐藏
			///</summary>
			public const String Hide = "Hide";

			///<summary>
			/// 移除主题
			///</summary>
			public const String RemoveTheme = "RemoveTheme";

			///<summary>
			/// 移动主题
			///</summary>
			public const String MoveTheme = "MoveTheme";

			///<summary>
			/// 顶部主题
			///</summary>
			public const String TopTheme = "TopTheme";

			///<summary>
			/// 明亮主题
			///</summary>
			public const String BrightTheme = "BrightTheme";

			///<summary>
			/// 上或下主题
			///</summary>
			public const String UpOrDownTheme = "UpOrDownTheme";

			///<summary>
			/// 最好主题
			///</summary>
			public const String BestTheme = "BestTheme";

			///<summary>
			/// 属性1
			///</summary>
			public const String prop1 = "prop1";

			///<summary>
			/// 属性2
			///</summary>
			public const String prop2 = "prop2";

			///<summary>
			/// 属性3
			///</summary>
			public const String prop3 = "prop3";

			///<summary>
			/// 属性4
			///</summary>
			public const String prop4 = "prop4";

			///<summary>
			/// 添加用户
			///</summary>
			public const String AddUser = "AddUser";

			///<summary>
			/// 添加时间
			///</summary>
			public const String AddTime = "AddTime";

			///<summary>
			/// 修改用户
			///</summary>
			public const String ModifyUser = "ModifyUser";

			///<summary>
			/// 修改时间
			///</summary>
			public const String ModifyTime = "ModifyTime";

			///<summary>
			/// 备份编号
			///</summary>
			public const String BackupNo = "BackupNo";

			///<summary>
			/// 备份操作者
			///</summary>
			public const String BackupOperator = "BackupOperator";

			///<summary>
			/// 备份时间
			///</summary>
			public const String BackupTime = "BackupTime";

			///<summary>
			/// 备份注释
			///</summary>
			public const String BackupMemo = "BackupMemo";
		}
		#endregion
	}
}